package creatingObjects;

import java.io.Serializable;

import javax.security.sasl.SaslClient;
import javax.security.sasl.SaslException;

class SuperCool {
	static String os = "";

	void doStuff() {
		os += "super ";
	}
}

public class Cool extends SuperCool {
	public static void main(String[] args) {
		new Cool().go();
	}

	void go() {
		SuperCool s = new Cool();
		Cool c = (Cool) s;
		c.doStuff(); //TAK
		 s.doStuff();//TAK
		 this.doStuff();//TAK
		 super.doStuff();//TAK
		// c.super.doStuff(); //NIE!
		// s.super.doStuff();//NIE!
		// this.super.doStuff();//NIE!
		 
	}

	void doStuff() {
		os += "cool ";
	}

}